def merge_url_params(url: str, params: dict) -> str:
    return url + "?" + "&".join([f"{key}={value}" for key, value in params.items()])


def get_request_header(cookie: dict) -> dict:
    """
    获取请求头
    :param cookie: Cookie
    :return: 请求头
    """
    cookie_str = "; ".join([f"{key}={value}" for key, value in cookie.items()])
    return {
        "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, "
                      "like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/137.0.0.0",
        "Accept": "application/json, text/plain, */*",
        "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
        "Cookie": cookie_str
    }
